Conditions | 6 |
Total Lines | 21 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | // eslint-disable-next-line no-unused-vars |
||
30 | return this; |
||
31 | } |
||
32 | |||
33 | removeAfter(wait = 0) { |
||
34 | if (wait) { |
||
35 | setTimeout(() => { |
||
36 | this.elm.classList.remove(this.class); |
||
37 | }, wait); |
||
38 | } else { |
||
39 | this.elm.classList.remove(this.class); |
||
40 | } |
||
41 | return this; |
||
42 | } |
||
43 | |||
44 | removeAllAfter(wait = 0) { |
||
45 | const elms = document.querySelectorAll(`.${this.class}`); |
||
46 | if (!elms) return; |
||
47 | if (wait) { |
||
48 | setTimeout(() => { |
||
49 | elms.forEach(elm => elm.classList.remove(this.class)); |
||
50 | }, wait); |
||
51 | } else { |
||
56 |